<template>
    <svg class="icon" :style="`width: ${width}; height: ${height}; marginRight: ${iconRg}`">
      <use :xlink:href='`#icon-${icon}`'></use>
    </svg>
</template>
<script>

export default {
  name: 'iconFont',
  props: {
    icon: {
      type: String,
      default: '',
    },
    width: {
      type: String,
      default: '20px',
    },
    height: {
      type: String,
      default: '20px',
    },
    iconRg: {
      type: String,
      default: '4px',
    }
  },
}
</script>
<style lang="scss" scoped>
.icon {
  vertical-align: middle;
  fill: currentColor;
  overflow: hidden;
}
</style>

